package com.javaee.ejb.entity;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the project database table.
 * 
 */
@Entity
@Table(name="project")
@NamedQueries(
{
	@NamedQuery(name = "FindAllProjects", query = "SELECT OBJECT (em) FROM Project em WHERE em.managerIdemployee <> :manager"),
	@NamedQuery(name = "FindReallyAllProjects", query = "SELECT OBJECT (em) FROM Project em"),
	@NamedQuery(name = "FindAllProjectsManager", query = "SELECT OBJECT (em) FROM Project em WHERE em.managerIdemployee = :manager"),
    @NamedQuery(name = "FindProjectById", query = "SELECT OBJECT (em) FROM Project em WHERE em.idproject = :p_Identifiant"),
})
@NamedNativeQueries({
	
})
public class Project implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int idproject;

	private int budject;

	private String description;

	@Column(name="manager_idemployee")
	private int managerIdemployee;

	private String name;

    public Project() {
    }

	public int getIdproject() {
		return this.idproject;
	}

	public void setIdproject(int idproject) {
		this.idproject = idproject;
	}

	public int getBudject() {
		return this.budject;
	}

	public void setBudject(int budject) {
		this.budject = budject;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getManagerIdemployee() {
		return this.managerIdemployee;
	}

	public void setManagerIdemployee(int managerIdemployee) {
		this.managerIdemployee = managerIdemployee;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

}